package com.aiobc.business.personalcenter.service.impl;

import com.aiobc.business.personalcenter.domain.DataCollectionLog;
import com.aiobc.business.personalcenter.mapper.DataCollectionLogMapper;
import com.aiobc.business.personalcenter.service.DataCollectionLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zhangcan
 * @Description: 数据收藏
 * @Date: 2021-10-21 9:00
 */
@Service
public class DataCollectionLogServiceImpl implements DataCollectionLogService {

    @Autowired
    private DataCollectionLogMapper dataCollectionLogMapper;

    /**
     * @Author zhangcan
     * @Description: 新增数据收藏
     * @Date: 2021-10-21 9:00
     */
    @Override
    public int insertDataCollectionLog(DataCollectionLog dataCollectionLog){
        return dataCollectionLogMapper.insertDataCollectionLog(dataCollectionLog);
    }

    /**
     * @Author zhangcan
     * @Description: 修改数据收藏
     * @Date: 2021-10-21 9:00
     */
    @Override
    public int updateDataCollectionLog(DataCollectionLog dataCollectionLog)
    {
        return dataCollectionLogMapper.updateDataCollectionLog(dataCollectionLog);
    }
    /**
     * @Author zhangcan
     * @Description: 删除数据收藏
     * @Date: 2021-10-21 9:00
     */
    @Override
    public int deleteDataCollectionLogById(String logId)
    {
        return dataCollectionLogMapper.deleteDataCollectionLogById(logId);
    }

    /**
     * @Author zhangcan
     * @Description: 批量删除数据收藏
     * @Date: 2021-10-21 9:00
     */
    @Override
    public int deleteDataCollectionLogByIds(String []logIds)
    {
        return dataCollectionLogMapper.deleteDataCollectionLogByIds(logIds);
    }

    /**
     * @Author zhangcan
     * @Description: 查询数据收藏
     * @Date: 2021-10-21 9:00
     */
    @Override
    public DataCollectionLog selectDataCollectionLogById(String logId)
    {
        return dataCollectionLogMapper.selectDataCollectionLogById(logId);
    }

    /**
     * @Author zhangcan
     * @Description: 查询数据收藏列表
     * @Date: 2021-10-21 9:00
     */
    @Override
    public List<DataCollectionLog> selectDataCollectionLogList(DataCollectionLog dataCollectionLog)
    {
        return dataCollectionLogMapper.selectDataCollectionLogList(dataCollectionLog);
    }


}
